Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

333
Visualizações
r2d3 - error when resizing chart in "viewer" pane in R

I have a chart which I've built using d3 (r2d3 in R). This is d3 v3. The chart renders just fine, but whenever I resize the viewer pane, I get the following error:

Error: t.slice is not a function in (script.js#301:6)
TypeError: t.slice is not a function
at Jn (d3.min.js:1:18267)
at e (d3.min.js:1:15373)
at Function.t.parse (d3.min.js:1:14782)
at r2d3-script-642:308:21
at Array.forEach (<anonymous>)

The line(s) in question:

var format = d3.time.format("%Y-%m-%d")

data.forEach(function (d) {
  d.letter = format.parse(d.letter);
  console.log(d.letter)
});

console.log(data)

Again, in the viewer pane in R Studio, it works absolutely fine but only gives this error when the viewer is re-sized. In HTML, it can re-size no problem with no error.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda